#ifndef APP_WORK_H_
#define APP_WORK_H_
#include "Mini58Series.h"

#define X_START_POINT 0x01
#define X_MIDDLE_POINT 0x00
#define X_TAIL_POINT 0x02

#define Y_START_POINT 0x01
#define Y_MIDDLE_POINT 0x00
#define Y_TAIL_POINT 0x02

#define FORWARD_TURN 1
#define REVERSE_TURN 0

#define MOTOR_EN 1
#define MOTOR_DIS 0

#define X_LIGHT_SW_GN 0  //横轴光电开关组号
#define Y_LIGHT_SW_GN 1  //纵轴光电开关组号

#define X_MOTOR_GN MOT_GN_C      //横轴的电机组号
#define Y_MOTOR_GN MOT_GN_A      //纵轴的电机组号
#define BRUSH_MOTOR_GN MOT_GN_B  //毛刷的电机组号

#define Y_AXIS_MOVE_TIME 20

typedef enum {
  WORK_STOP = 0,
  WORK_START,

  WORK_RUN,
  WORK_RST,
  WORK_IDLE,
} WORK_STEP_E;

typedef struct {
  uint8_t mode;
  WORK_STEP_E workStep;
} WORK_ST;




void app_work_init(void);
void app_work_loop(void);
WORK_ST *app_cfg_work_info(void);

#endif
